package com.tongyi.shop.service.order.controller;


import com.tongyi.shop.common.enums.StatusCodeEnum;
import com.tongyi.shop.common.pojo.vo.BaseResponse;
import com.tongyi.shop.service.order.pojo.entity.ErpOrderStatusLog;
import com.tongyi.shop.service.order.service.ErpOrderStatusLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单状态变更日志 前端控制器
 * </p>
 *
 * @author 
 * @since 2020-09-22
 */
@RestController
@RequestMapping("/erp/erp-order-status-log")
public class ErpOrderStatusLogController {

    @Autowired
    private ErpOrderStatusLogService erpOrderStatusLogService;

    @GetMapping("/info")
    public BaseResponse<ErpOrderStatusLog> findByMobile(String id){
        BaseResponse<ErpOrderStatusLog> baseResponse = new BaseResponse<>(StatusCodeEnum.Success);
        baseResponse.setData(erpOrderStatusLogService.getById(id));
        return baseResponse;
    }


}
